#pragma once

#include "GTTcpConnection.h"

#define DATA_BUFFER_SIZE 1024*1024*5

class GTTcpConnectionForImageReceive : public GTTcpConnection
{
    public:
    explicit GTTcpConnectionForImageReceive(const sockaddr_in& stClientSocket, int nNewSock);
    ~GTTcpConnectionForImageReceive();


    private:
    void NewDataArrived(const char* pData, unsigned int uDataLen) override;


    private:
    char m_arrBuffer[DATA_BUFFER_SIZE];
    unsigned int m_uDataLength;
    bool m_bImgMsg;
    bool m_bImgDataFullyReceived;

};